import {createRouter, createWebHistory} from "vue-router";

let routes = [
    {
        path: '/',
        redirect: '/index'
    },
    {
        path: '/index',
        name: 'Index',
        meta: {
            title: '首页'
        },
        component: () => import('@/views/index.vue')
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
